package com.chinasoft.common;

/**
 * 返回结果的封装类
 */
public class Constant {

    public static final Integer CODE_ZERO = 0;//错误代码
    public static final Integer CODE_ONE = 1;//成功代码
    public static final Integer CODE_TWO = 2;//未知错误代码

    //这个下面可以自定义一些消息提示信息的内容，例如下单成功，注册失败等

    public static final String REGISTER_FAILED="注册失败，请稍后重试!";
    public static final String REGISTER_SUCCESS="注册成功，正在跳转登录!";
    public static final String LOGIN_FAILED="登录失败，请稍后重试!";
    public static final String LOGIN_SUCCESS="登录成功，正在跳转登录!";

    public static final String ADD_SUCCESS="商家添加成功";
    public static final String ADD_FAILED="添加失败";

    public static final String UPDATE_SUCCESS="修改成功";
    public static final String UPDATE_FAILED="修改失败";

    public static final String DELETE_SUCCESS="删除成功";
    public static final String DELETE_FAILED="删除失败";

    public static final String TAKEORDER_SUCCESS="接单成功";
    public static final String TAKEORDER_FAILED="接单失败";

    public static final String DONEORDER_SUCCESS="订单完成，已送达";
    public static final String DONEORDER_FAILED="订单未完成";
    /**
     * HTTP Session中的用户名 Key
     */
    public static final String DEFAULT_SESSION_USERNAME = "account";

    /**
     * WEBSOCKET Session中的用户名 Key
     */
    public static final String DEFAULT_WEBSOCKET_USERNAME = "ws_account";



}
